package com.es.www.kyl.factory;

import cn.hutool.extra.spring.SpringUtil;
import com.es.www.kyl.constant.BaseConstants;
import com.es.www.kyl.manager.AbstractRoundManager;
import com.es.www.kyl.manager.CommonRoundManager;
import com.es.www.kyl.manager.WrongRoundManager;

import java.util.Objects;

/**
 * @author Estranger
 * @date 2025/8/25
 * description
 */
public class RoundFactory {

	public static AbstractRoundManager getRoundManager(BaseConstants.UserPracticeType practiceType) {
		if(Objects.equals(practiceType, BaseConstants.UserPracticeType.COMMON )){
			return SpringUtil.getBean(CommonRoundManager.class);
		}else {
			return SpringUtil.getBean(WrongRoundManager.class);
		}
	}
}
